<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@include file="/include/taglibs.jsp"%>
<html>
<head>
<title>考题查看</title>
<link href="student/images/css2.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
<!--
.STYLE3 {font-size: 18px; }
.STYLE4 {font-size: 18px; font-weight: bold; }
.STYLE5 {color: #FF0000}
-->
</style>

</head>

<body>
<table width="1003" height="485" border="0" cellpadding="0" cellspacing="0" class="centerbg">
  <tr>
    <td width="149" height="485">&nbsp;</td>
    <td width="741" valign="top" class="rightbian">
	 <form action="${ctx}/score!submitExam.action" method="post">
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="10">
      <tr>
        <td><div align="center" class="STYLE3">考试时间：60 分钟</div></td>
        <td><div align="center" class="STYLE3">考生：${score.user.name}</div></td>
        <td><div align="center" class="STYLE3">成绩 ：${score.score }分</div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><div id="tTime"></div></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" bgcolor="#999999" class="STYLE4">Ⅰ单项选择题(每小题3分，共30个)</td>
      </tr>
	  <!--题目开始-->
	 
	  <c:forEach var="his" items="${chooseSubject}" varStatus="sta">	  
	  	 <tr>
        <td colspan="3"><strong>第<span class="STYLE5">${sta.index + 1}</span>题&nbsp;${his.subject.subjectTitle}</strong>		</td>
      </tr>
      <tr>
        <td colspan="3"><strong>A．</strong>${his.subject.subjectOptionA}</td>
      </tr>
      <tr>
        <td colspan="3"><strong>B．</strong>${his.subject.subjectOptionB}</td>
      </tr>
      <tr>
        <td colspan="3"><strong>C．</strong>${his.subject.subjectOptionC}</td>
      </tr>
      <tr>
        <td colspan="3"><strong>D．</strong>${his.subject.subjectOptionD}</td>
      </tr>
      <tr>
        <td height="32" colspan="3" bgcolor="#CCCCCC">答案：
          <c:if test="${his.result=='1' }">答案正确，选项为【${his.userAnswer}】</c:if>
          <c:if test="${his.result=='0' }"><span style="color:red;">答案错误，你的选项为【${his.userAnswer}】,正确答案为【${his.subject.subjectAnswer}】</span></c:if>
        </td>
        
      </tr>
       <tr>
        <td height="32" colspan="3" bgcolor="#CCCCCC">试题解析
        	<textarea rows="2" cols="70">${his.subject.subjectParse}</textarea>
        </td>        
      </tr>
	  </c:forEach>
	   <!--题目结束-->
      <!--  多选开始 -->
      <tr>
        <td colspan="3" bgcolor="#999999" class="STYLE4">Ⅱ多项选择题(每小题5分，共50个)</td>
      </tr>
	  <!--题目开始-->
	 
	  <c:forEach var="his" items="${doubleDecideList}" varStatus="sta">	  
	  	 <tr>
        <td colspan="3"><strong>第<span class="STYLE5">${sta.index + 1}</span>题&nbsp;${his.subject.subjectTitle}</strong>		</td>
      </tr>
      <tr>
        <td colspan="3"><strong>A．</strong>${his.subject.subjectOptionA}</td>
      </tr>
      <tr>
        <td colspan="3"><strong>B．</strong>${his.subject.subjectOptionB}</td>
      </tr>
      <tr>
        <td colspan="3"><strong>C．</strong>${his.subject.subjectOptionC}</td>
      </tr>
      <tr>
        <td colspan="3"><strong>D．</strong>${his.subject.subjectOptionD}</td>
      </tr>
      <tr>
        <td height="32" colspan="3" bgcolor="#CCCCCC">答案：
          <c:if test="${his.result=='1' }">答案正确，选项为【${his.userAnswer}】</c:if>
          <c:if test="${his.result=='0' }"><span style="color:red;">答案错误，你的选项为【${his.userAnswer}】,正确答案为【${his.subject.subjectAnswer}】</span></c:if>
        </td>
        
      </tr>
       <tr>
        <td height="32" colspan="3" bgcolor="#CCCCCC">试题解析
        	<textarea rows="2" cols="70">${his.subject.subjectParse}</textarea>
        </td>        
      </tr>
	  </c:forEach>
      <!-- 多选结束 -->
	   
	   <tr>
        <td colspan="3" bgcolor="#999999" class="STYLE4">Ⅲ判断题(每小题2分，共20个)</td>
      </tr>
	    <c:forEach var="his" items="${decideList}" varStatus="status">	
	  	<tr>
         <td colspan="3"><strong>第<span class="STYLE5">${status.index + 1}</span>题&nbsp;${his.subject.subjectTitle}</strong>		</td>
       </tr>
       <tr>
        <td height="32" colspan="3" bgcolor="#CCCCCC">答案：
          <c:if test="${his.result=='1' }">答案正确，选项为
                      【
          <c:if test="${his.userAnswer=='1'}">正确</c:if>
          <c:if test="${his.userAnswer=='0'}">错误</c:if>
                     】
        </c:if>
          <c:if test="${his.result=='0' }"><span style="color:red;">答案错误，你的选项为【
          <c:if test="${his.userAnswer=='1'}">正确</c:if>
          <c:if test="${his.userAnswer=='0'}">错误</c:if>
                     】,正确答案为:
                   【
          <c:if test="${his.subject.subjectAnswer=='1'}">正确</c:if>
          <c:if test="${his.subject.subjectAnswer=='0'}">错误</c:if>
                     】     </span>        
                     
       </c:if>
        </td>
        
      </tr>
       <tr>
        <td height="32" colspan="3" bgcolor="#CCCCCC">试题解析
        	<textarea rows="2" cols="70">${his.subject.subjectParse}</textarea>
        </td>        
      </tr>
	   </c:forEach>
      <tr>
        <td colspan="3"><div align="center">
          
        </div></td>
      </tr>
    </table>
     </form>
    </td>
    <td width="113">&nbsp;</td>
  </tr>
</table>
</body>
</html>
